/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.insurance.cis.session;

import com.insurance.cis.models.Employee;

/**
 *
 * @author TruongLQ
 */
public class UserSession {
    public static final UserSession INSTANCE = new UserSession();
    
    private Employee currentUser;
    
    public static UserSession getSession() {
        return INSTANCE;
    }
    
    public void setCurrentUser(final Employee currentUser) {
        this.currentUser = currentUser;
    }
    
    public Employee getCurrentUser() {
        return this.currentUser;
    }
    
    public void invalidateUser() {
        this.currentUser = null;
    }
    
}
